#include "stdio.h"
#include "YTRecorderPcm.h"
#include "YTRecorderPcmImpl.h"

YTRecorderPcm YTRecorderPcm::mInstance;

YTRecorderPcm &YTRecorderPcm::Instance()
{
	return mInstance;
}

YTRecorderPcm::YTRecorderPcm()
{
	mRecorderPcmImpl = new YTRecorderPcmImpl();
}


YTRecorderPcm::~YTRecorderPcm()
{
	if(mRecorderPcmImpl)delete mRecorderPcmImpl;
	mRecorderPcmImpl = NULL;
}


void YTRecorderPcm::Init(YTQueue * pQueue)
{
	mRecorderPcmImpl->Init(pQueue);	
}

int YTRecorderPcm::Start()
{
	mRecorderPcmImpl->Start();
}

int YTRecorderPcm::Resume()
{
	mRecorderPcmImpl->Resume();
}

int YTRecorderPcm::Pause()
{
	mRecorderPcmImpl->Pause();
}

int YTRecorderPcm::Stop()
{
	mRecorderPcmImpl->Stop();
}

int YTRecorderPcm::SetEventListener(IOnEvent* _pEvent)
{
	mRecorderPcmImpl->SetEventListener(_pEvent);
}




